package com.woniuxy.micromessageserver.messagemag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.micromessageserver.bean.NewsBean;
import com.woniuxy.micromessageserver.bean.PageRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface INewsService {
    /**
     * 1 根据参数进行分页查询
     * @param request 分页请求对象
     * @param newsBean 条件  根据userid 和 消息类型
     * @return
     */
    PageInfo<NewsBean> findNewsByUidAndType
    (PageRequest request, NewsBean newsBean);


}
